package org.springside.examples.miniweb.entity.dictionary;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.springside.examples.miniweb.entity.IdEntity;

/**
 * DictionaryDetail.
 */
@Entity
@Table(name = "s_dictionary_detail")
public class DictionaryDetail extends IdEntity {

	private DictionaryClass dictionaryClass;
	private Integer sort;
	private String remark;
	private String value;
	private Character sysFlag;

	public DictionaryDetail() {
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "pid")
	public DictionaryClass getDictionaryClass() {
		return this.dictionaryClass;
	}

	public void setDictionaryClass(DictionaryClass dictionaryClass) {
		this.dictionaryClass = dictionaryClass;
	}

	@Column(name = "sort")
	public Integer getSort() {
		return this.sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	@Column(name = "remark", length = 65535)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "value", length = 200)
	public String getValue() {
		return this.value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@Column(name = "sysFlag", length = 1)
	public Character getSysFlag() {
		return this.sysFlag;
	}

	public void setSysFlag(Character sysFlag) {
		this.sysFlag = sysFlag;
	}
}
